package com.ytjj.qmyx.admin.controller;

import com.ytjj.common.api.CommonResult;
import com.ytjj.qmyx.admin.model.request.PayStatisticsRequest;
import com.ytjj.qmyx.admin.service.PayStatisticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 
 * 
 * @Version 1.0
 *
 * 支付统计 管理
 **/
@RestController
@RequestMapping("/payStatistics")
public class PayStatisticsController {

    @Autowired
    private PayStatisticsService payStatisticsService;


    /**
     * 渠道统计
     * @param payStatisticsRequest
     * @return
     */
    @PostMapping("/list")
    public CommonResult getList(@RequestBody PayStatisticsRequest payStatisticsRequest) {
        return CommonResult.success(payStatisticsService.getPayStatisticsList(payStatisticsRequest));
    }

}
